package xyz.zhouzhaodong.crm.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import xyz.zhouzhaodong.crm.dto.ContractDto;
import xyz.zhouzhaodong.crm.entity.Contract;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 合同 Mapper 接口
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-18
 */
public interface ContractMapper extends BaseMapper<Contract> {

    /**
     * 根据用户id查询合同信息
     * @param contractDto
     * @param page
     * @return
     */
    IPage<ContractDto> selectContractList(@Param("contractDto") ContractDto contractDto, Page<ContractDto> page);

}
